CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(TESTOPENCV_WXF)

OPTION(BUILD_TESTOPENCV_WXF "buil the test wxf" on)

IF( BUILD_TESTOPENCV_WXF)

FILE(GLOB_RECURSE TEST_SRC_LIST ./*.*)

IF(WIN32)
    INCLUDE_DIRECTORIES(H:/CODE/algorithmFrame/thirdDependence/OpenCV/include)
    LINK_DIRECTORIES(H:/CODE/algorithmFrame/thirdDependence/OpenCV/x64/vc12/lib)
    ADD_EXECUTABLE(SAMPLE_TEST_WXF ${TEST_SRC_LIST})
    target_link_libraries(
        SAMPLE_TEST_WXF
        opencv_calib3d300d.lib
        opencv_core300d.lib
        opencv_features2d300d.lib
        opencv_flann300d.lib
        opencv_hal300d.lib
        opencv_highgui300d.lib
        opencv_imgcodecs300d.lib
        opencv_imgproc300d.lib
        opencv_ml300d.lib
        opencv_objdetect300d.lib
        opencv_photo300d.lib
        opencv_shape300d.lib
        opencv_stitching300d.lib
        opencv_superres300d.lib
        opencv_ts300d.lib
        opencv_video300d.lib
        opencv_videoio300d.lib
        opencv_videostab300d.lib)

ENDIF(WIN32)

IF(UNIX)
    INCLUDE_DIRECTORIES(/home/pub/medImg/pubLibs/thirdDependence/opencv/include)
    LINK_DIRECTORIES(/home/pub/medImg/pubLibs/thirdDependence/opencv/lib)
    ADD_EXECUTABLE(SAMPLE_TEST_WXF ${TEST_SRC_LIST})
    target_link_libraries(SAMPLE_TEST_WXF
        opencv_calib3d
        opencv_core
        opencv_features2d
        opencv_flann
        opencv_highgui
        opencv_imgcodecs
        opencv_imgproc
        opencv_ml
        opencv_objdetect
        opencv_photo
        opencv_shape
        opencv_stitching
        opencv_superres
        opencv_video
        opencv_videoio
        opencv_videostab
        )

ENDIF(UNIX)

ENDIF(BUILD_TESTOPENCV_WXF)